package main

import (
	"github.com/apache/dubbo-go/config"
	"jkgo/jk/jklog"
)

type UserManager struct {
}

var userProvider = new(UserManager)

func init() {
	config.SetProviderService(userProvider)
}

func (u *UserManager) UserQuery(name, phone string) (*User, error) {
	jklog.L().Infoln("name ", name)
	uu := &User{}
	uu.Name = name
	uu.Phone = phone
	uu.Id = "this is test"
	return uu, nil
}

func (u *UserManager) Reference() string {
	return "UserManager"
}
